/*
 * @lc app=leetcode.cn id=1523 lang=typescript
 *
 * [1523] 在区间范围内统计奇数数目
 */

// @lc code=start
function countOdds(low: number, high: number): number {
    const count = Math.floor((high - low) / 2);
    if (low % 2 || high % 2) return count + 1;
    return count;
}
// @lc code=end
